<div class="uinformations view">
<h2><?php  __('Personal information');?></h2>

<?php if(!empty($uinformation)){  ?>
<?php 
if($session->read('Auth.User.role')!=1)
echo $this->Html->link(__('Edit', true), array('action' => 'edit', $uinformation['Uinformation']['id'])); ?>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
<?php if(strlen($uinformation['Uinformation']['photo'])>0){?>
            <dt></dt>
		<dd >
			<?php  echo $html->image("/img/photo/".$uinformation['Uinformation']['photo'],array('width'=>'200px','border'=>'3px')); ?>
			&nbsp;
		</dd>
                <?php
}
                ?>
            <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Full Name:'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?> >
			<?php  echo $uinformation['User']['fullname']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Father Name:'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $uinformation['Uinformation']['fathername']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Mother Name:'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $uinformation['Uinformation']['mothername']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Date of birth:'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $uinformation['Uinformation']['datebirth']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('E-mail:'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php  echo $uinformation['User']['username']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Joining date:'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $uinformation['Uinformation']['joiningdate']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Gradation number:'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $uinformation['Uinformation']['gradationnumber']; ?>
			&nbsp;
		</dd>
                <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Religion:'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $uinformation['Uinformation']['religion']; ?>
			&nbsp;
		</dd>
                <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Faction:'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $uinformation['Uinformation']['faction']; ?>
			&nbsp;
		</dd>
                
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Nature of employment:'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $uinformation['Uinformation']['natureemployment']; ?>
			&nbsp;
		</dd>
		
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Nationality:'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $uinformation['Uinformation']['nationality']; ?>
			&nbsp;
		</dd>
		
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Gender:'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $uinformation['Uinformation']['gender']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Marital status:'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $uinformation['Uinformation']['maritalstatus']; ?>
			&nbsp;
		</dd>
		
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Freedom fighter:'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $uinformation['Uinformation']['freedomfighter']; ?>
			&nbsp;
		</dd>
		<!-- <dt<?php //if ($i % 2 == 0) echo $class;?>><?php  //__('Photo'); ?></dt>
		<dd<?php //if ($i++ % 2 == 0) echo $class;?>>
			<?php //echo $uinformation['Uinformation']['photo']; ?>
			&nbsp;
		</dd> -->
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Cadre name:'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $uinformation['Uinformation']['cadrename']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Batch Number:'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $uinformation['Uinformation']['batch']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Date of encadrement:'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $uinformation['Uinformation']['dateofencadrement']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Village:'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $uinformation['Uinformation']['village']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Post office:'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $uinformation['Uinformation']['postoffice']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Upazilla:'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $uinformation['Uinformation']['upazilla']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('District:'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $uinformation['Uinformation']['district']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Post code:'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $uinformation['Uinformation']['postcode']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Police station:'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $uinformation['Uinformation']['policestation']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Mobile:'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $uinformation['Uinformation']['mobile']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Spouse name:'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $uinformation['Uinformation']['sname']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Spouse date of birth:'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $uinformation['Uinformation']['sdateofbirth']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Spouse occupation:'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $uinformation['Uinformation']['soccupation']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Spouse designation:'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $uinformation['Uinformation']['sdesignation']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Spouse organization:'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $uinformation['Uinformation']['sorganization']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Spouse posting place:'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $uinformation['Uinformation']['spostingplace']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Additional qualification:'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $uinformation['Uinformation']['addqualification']; ?>
			&nbsp;
		</dd>
		
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Professional member:'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $uinformation['Uinformation']['professionalmember']; ?>
			&nbsp;
		</dd>
		
		
		
	</dl>
	<?php 
	}else{
	?>
	<?php 
	if($session->read('Auth.User.role')!=1)
	echo $this->Html->link(__('Please click here to add your information', true), array('action' => 'add'));
	else
	echo "no info found!";
	?>
	<?php
	}
	?>
</div>
<div class="actions">
	<?php echo $this->element('leftmenu'); ?>
</div>

<div class="awards index">
	<h2><?php __('Awards');?></h2>
          <?php
	if($session->read('Auth.User.role')!=1)
	echo $this->Html->link(__('Add New', true), array('controller' => 'awards','action' => 'add')); ?>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th>SL<?php //echo $this->Paginator->sort('id');?></th>
			<th>Name<?php //echo $this->Paginator->sort('name');?></th>
			<th>Date<?php //echo $this->Paginator->sort('date');?></th>
<!--			<th><?php //echo $this->Paginator->sort('user_id');?></th>-->
		<?php
			if($session->read('Auth.User.role')!=1){?>
                        <th class="actions"><?php __('Actions');?></th>
                        <?php
                        }
                        ?>
	</tr>
	<?php
	$i = 0;
	foreach ($awards as $award):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $i; ?>&nbsp;</td>
		<td><?php echo $award['Award']['name']; ?>&nbsp;</td>
		<td><?php echo $award['Award']['date']; ?>&nbsp;</td>
<!--		<td>
			<?php //echo $this->Html->link($award['User']['id'], array('controller' => 'users', 'action' => 'view', $award['User']['id'])); ?>
		</td>-->
                <?php
			if($session->read('Auth.User.role')!=1){?>
		<td class="actions">
			<?php //echo $this->Html->link(__('View', true), array('action' => 'view', $award['Award']['id'])); ?>
			<?php echo $this->Html->link(__('Edit', true), array('controller' => 'awards','action' => 'edit', $award['Award']['id'])); ?>
			<?php echo $this->Html->link(__('Delete', true), array('controller' => 'awards','action' => 'delete', $award['Award']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $award['Award']['id'])); ?>
		</td>
                <?php } ?>
	</tr>
<?php endforeach; ?>
	</table>

</div>


<div class="deputations index">
	<h2><?php __('Deputations');?></h2>
         <?php
	if($session->read('Auth.User.role')!=1)
	echo $this->Html->link(__('Add New', true), array('controller' => 'deputations','action' => 'add')); ?>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th>SL<?php //echo $this->Paginator->sort('id');?></th>
			<th>Designation<?php //echo $this->Paginator->sort('designation');?></th>
			<th>Organization<?php //echo $this->Paginator->sort('organization');?></th>
			<th>Country<?php //echo $this->Paginator->sort('country');?></th>
			<th>Source of fund<?php //echo $this->Paginator->sort('sourceoffund');?></th>
			<th>From<?php //echo $this->Paginator->sort('from');?></th>
			<th>To<?php //echo $this->Paginator->sort('to');?></th>
<!--			<th><?php //echo $this->Paginator->sort('user_id');?></th>-->
			<?php
			if($session->read('Auth.User.role')!=1){?>
                        <th class="actions"><?php __('Actions');?></th>
                        <?php } ?>
	</tr>
	<?php
	$i = 0;
	foreach ($deputations as $deputation):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $i; ?>&nbsp;</td>
		<td><?php echo $deputation['Deputation']['designation']; ?>&nbsp;</td>
		<td><?php echo $deputation['Deputation']['organization']; ?>&nbsp;</td>
		<td><?php echo $deputation['Deputation']['country']; ?>&nbsp;</td>
		<td><?php echo $deputation['Deputation']['sourceoffund']; ?>&nbsp;</td>
		<td><?php echo $deputation['Deputation']['from']; ?>&nbsp;</td>
		<td><?php echo $deputation['Deputation']['to']; ?>&nbsp;</td>
<!--		<td>
			<?php //echo $this->Html->link($deputation['User']['id'], array('controller' => 'users', 'action' => 'view', $deputation['User']['id'])); ?>
		</td>-->
                <?php
			if($session->read('Auth.User.role')!=1){?>
		<td class="actions">
			<?php //echo $this->Html->link(__('View', true), array('action' => 'view', $deputation['Deputation']['id'])); ?>
			<?php echo $this->Html->link(__('Edit', true), array('controller' => 'deputations','action' => 'edit', $deputation['Deputation']['id'])); ?>
			<?php echo $this->Html->link(__('Delete', true), array('controller' => 'deputations','action' => 'delete', $deputation['Deputation']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $deputation['Deputation']['id'])); ?>
		</td>
                <?php
                        }
                ?>
	</tr>
<?php endforeach; ?>
	</table>

</div>

<div class="publications index">
	<h2><?php __('Publications');?></h2>
        <?php
	if($session->read('Auth.User.role')!=1)
	echo $this->Html->link(__('Add New', true), array('controller' => 'publications','action' => 'add')); ?>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th>SL<?php //echo $this->Paginator->sort('id');?></th>
			<th>Type of Publication<?php //echo $this->Paginator->sort('typeofpublication');?></th>
			<th>Title<?php //echo $this->Paginator->sort('title');?></th>
			<th>Published by<?php //echo $this->Paginator->sort('publishedby');?></th>
			<th>Date<?php //echo $this->Paginator->sort('date');?></th>
<!--			<th><?php //echo $this->Paginator->sort('user_id');?></th>-->
			<?php
			if($session->read('Auth.User.role')!=1){?>
                        <th class="actions"><?php __('Actions');?></th>
                        <?php
                        }
                        ?>
	</tr>
	<?php
	$i = 0;
	foreach ($publications as $publication):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $i; ?>&nbsp;</td>
		<td><?php echo $publication['Publication']['typeofpublication']; ?>&nbsp;</td>
		<td><?php echo $publication['Publication']['title']; ?>&nbsp;</td>
		<td><?php echo $publication['Publication']['publishedby']; ?>&nbsp;</td>
		<td><?php echo $publication['Publication']['date']; ?>&nbsp;</td>
<!--		<td>
			<?php //echo $this->Html->link($publication['User']['id'], array('controller' => 'users', 'action' => 'view', $publication['User']['id'])); ?>
		</td>-->
                <?php
			if($session->read('Auth.User.role')!=1){?>
		<td class="actions">
			<?php //echo $this->Html->link(__('View', true), array('action' => 'view', $publication['Publication']['id'])); ?>
			<?php echo $this->Html->link(__('Edit', true), array('controller' => 'publications','action' => 'edit', $publication['Publication']['id'])); ?>
			<?php echo $this->Html->link(__('Delete', true), array('controller' => 'publications','action' => 'delete', $publication['Publication']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $publication['Publication']['id'])); ?>
		</td>
                <?php
                        }
                ?>
	</tr>
<?php endforeach; ?>
	</table>

</div>


<div class="children index">
	<h2><?php __('Children Information');?></h2>
	<?php 
	if($session->read('Auth.User.role')!=1)
	echo $this->Html->link(__('Add New', true), array('controller' => 'children','action' => 'add')); ?>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th>SL<?php //echo $this->Paginator->sort('id');?></th>
			<th>Name<?php //echo $this->Paginator->sort('Name');?></th>
			<th>Gender<?php //echo $this->Paginator->sort('Gender');?></th>
			<th>Date of Birth<?php //echo $this->Paginator->sort('Date of Birth');?></th>
			<th>Marital Status<?php //echo $this->Paginator->sort('Marital Status');?></th>
			<th>Disable<?php //echo $this->Paginator->sort('Disable');?></th>
			<!-- <th><?php //echo $this->Paginator->sort('user_id');?></th>
			<th><?php //echo $this->Paginator->sort('created');?></th>
			<th><?php //echo $this->Paginator->sort('modified');?></th> -->
			<?php
			if($session->read('Auth.User.role')!=1){?>
			<th class="actions"><?php __('Actions');?></th>
			<?php }?>
	</tr>
	<?php
	$i = 0;
	foreach ($children as $child):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $i; //echo $child['Child']['id']; ?>&nbsp;</td>
		<td><?php echo $child['Child']['name']; ?>&nbsp;</td>
		<td><?php echo $child['Child']['gender']; ?>&nbsp;</td>
		<td><?php echo date('d-M-Y', strtotime($child['Child']['dateofbirth'])); ?>&nbsp;</td>
		<td><?php echo $child['Child']['maritalstatus']; ?>&nbsp;</td>
		<td><?php echo $child['Child']['disable']; ?>&nbsp;</td>
		<!-- <td>
			<?php //echo $this->Html->link($child['User']['id'], array('controller' => 'users', 'action' => 'view', $child['User']['id'])); ?>
		</td>
		<td><?php //echo $child['Child']['created']; ?>&nbsp;</td>
		<td><?php //echo $child['Child']['modified']; ?>&nbsp;</td> -->
		<?php
		if($session->read('Auth.User.role')!=1){
		?>
		<td class="actions">
			<?php //echo $this->Html->link(__('View', true), array('action' => 'view', $child['Child']['id'])); ?>
			<?php echo $this->Html->link(__('Edit', true), array('controller' => 'children','action' => 'edit', $child['Child']['id'])); ?>
			<?php echo $this->Html->link(__('Delete', true), array('controller' => 'children','action' => 'delete', $child['Child']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $child['Child']['id'])); ?>
		</td>
		<?php 
		}
		?>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	/*echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));*/
	?>	</p>

	<!-- <div class="paging">
		<?php //echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php //echo $this->Paginator->numbers();?>
 |
		<?php //echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div> -->
</div>



<div class="otherservices index">
	<h2><?php __('Other services');?></h2>
        <?php
	if($session->read('Auth.User.role')!=1)
	echo $this->Html->link(__('Add New', true), array('controller' => 'otherservices','action' => 'add')); ?>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th>SL<?php  //echo $this->Paginator->sort('id');?></th>
			<th>Organization<?php  //echo $this->Paginator->sort('organization');?></th>
			<th>Address<?php  //echo $this->Paginator->sort('address');?></th>
			<th>Type<?php  //echo $this->Paginator->sort('type');?></th>
			<th>Designation<?php  //echo $this->Paginator->sort('designation');?></th>
			<th>From Date<?php   //echo $this->Paginator->sort('from');?></th>
			<th>To Date<?php  //echo $this->Paginator->sort('to');?></th>
<!--			<th><?php //echo $this->Paginator->sort('user_id');?></th>-->
			<?php
			if($session->read('Auth.User.role')!=1){?>
                        <th class="actions"><?php __('Actions');?></th>
                        <?php
                        }
                        ?>

	</tr>
	<?php
	$i = 0;
	foreach ($otherservices as $otherservice):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $i; ?>&nbsp;</td>
		<td><?php echo $otherservice['Otherservice']['organization']; ?>&nbsp;</td>
		<td><?php echo $otherservice['Otherservice']['address']; ?>&nbsp;</td>
		<td><?php echo $otherservice['Otherservice']['type']; ?>&nbsp;</td>
		<td><?php echo $otherservice['Otherservice']['designation']; ?>&nbsp;</td>
		<td><?php echo $otherservice['Otherservice']['from']; ?>&nbsp;</td>
		<td><?php echo $otherservice['Otherservice']['to']; ?>&nbsp;</td>
<!--		<td>
			<?php //echo $this->Html->link($otherservice['User']['id'], array('controller' => 'users', 'action' => 'view', $otherservice['User']['id'])); ?>
		</td>-->
                <?php
			if($session->read('Auth.User.role')!=1){?>

		<td class="actions">
			<?php //echo $this->Html->link(__('View', true), array('action' => 'view', $otherservice['Otherservice']['id'])); ?>
			<?php echo $this->Html->link(__('Edit', true), array('controller' => 'otherservices','action' => 'edit', $otherservice['Otherservice']['id'])); ?>
			<?php echo $this->Html->link(__('Delete', true), array('controller' => 'otherservices','action' => 'delete', $otherservice['Otherservice']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $otherservice['Otherservice']['id'])); ?>
		</td>
                <?php
                        }
                ?>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	/*echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));*/
	?>	</p>


</div>
